public class Test04 {
    public static void main(String[] args) {
        
        //通过子类的全参构造器创建Turck的对象
        Truck t = new Truck("baoma","123456","minitype");

        //通过子类的全参构造器创建Bus的对象
        Bus b = new Bus("dayun","456789",30);

        t.show();
        double r1=t.getRent(2);
        System.out.println(":"+r1 );


        b.show();
        double r2=b.getRent(2);
        System.out.println(":"+r2);
      


        
    }
}
